import asyncio
from config import settings


print(settings.basic['project_name'])

from ioservice.common import initial_ioservice, close_ioservice

__all__ = ['run_async_script']


def run_async_script(coroutine):
    loop = asyncio.get_event_loop()
    loop.run_until_complete(initial_ioservice())
    loop.run_until_complete(coroutine)
    loop.run_until_complete(close_ioservice())
